﻿@using Lu.Blog.Domain.Model.Menu
@inherits Umbraco.Web.Mvc.UmbracoViewPage<Lu.Blog.Models.MenuViewModel>

<ul id="nav" class="sf-menu sf-js-enabled sf-shadow">
    @foreach (MenuItem item in Model.Items)
    {
        var className = String.Empty;
        if (Model.Page != null && item.CurrentDocument.Id == Model.Page.Id)
        {
            className = "current-menu-item";
        }
        <li @(!string.IsNullOrEmpty(className)? "class="+className : "")><a href="@item.Url">@item.Title</a></li>
    }
</ul>